<template>
	<div class="goodsdesc-container">
		<h3>{{info.title}}</h3>
		<hr />
		<div class='content' v-html="info.content"></div>
	</div>
	
	

	
</template>

<script>
	export default {
		data() {
			return {
				info:{}//图文数据
				
			}
		},
		created(){
		this.getGoodsDesc();
		},
		methods:{
			getGoodsDesc(){
				this.$http.get('api/goods/getdesc/'+this.$route.params.id).then(result => {
					if(result.body.status === 0){
						this.info = result.body.message[0]
						console.log('商品详情的图文页面详情',this.info)
					}
				})
			}
		}
	}
	/*
	 
	 * 
	 * "http://img6.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_03.jpg\" /> 
	 * \r\n</p>\r\n<p align=\"center\">\r\n\t
	 * 
	 * src=\"http://img5.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_04.jpg\" /> 
	 * 
	 * src=\"http://img6.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_05.jpg\" /> 
	 * 
	 *  src=\"http://img5.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_06.jpg\" />
	 * 
	 * src=\"http://img5.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_07.jpg\" /> 
	 * 
	 * src=\"http://img5.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_08.jpg\" />
	 * 
	 * src=\"http://img6.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_09.jpg\" /> 
	 * 
	 * src=\"http://img6.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_10.jpg\" /> 
	 * 
	 * src=\"http://img6.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_11.jpg\" /> 
	 * 
	 *  src=\"http://img5.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_12.jpg\" /> 
	 * 
	 *  src=\"http://img5.gomein.net.cn/image/prodimg/productDesc/descImg/201503/desc1226/1122290268/1_13.jpg\" /> \
	 * }]}
	 * */
</script>

<style lang="scss">
	.goodsdesc-container{
		padding:4px;
		h3 {
			font-size: 16px;
			color:skyblue;
			text-align: center;
			margin: 15px 0;
		}
		.content {
			
			img{
				width: 100%;
				height: 100%;
				margin: -3px;
			}
		}
	}
</style>